package cn.coder.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AccountMapper {


    @Update("UPDATE t_account set money = money + #{count} where id = 1")
    void add(Integer count);

    @Update("UPDATE t_account set money = money - #{count} where id = 1")
    void reduce(Integer count);
}
